<layout name="layout" />
<link href="__PUBLIC__/umeditor1_2_2-utf8-php/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/umeditor1_2_2-utf8-php/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/umeditor1_2_2-utf8-php/umeditor.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/umeditor1_2_2-utf8-php/lang/zh-cn/zh-cn.js"></script>

<div class="main-div">
    <form name="main_form" method="POST" action="__SELF__" enctype="multipart/form-data">
        <table cellspacing="1" cellpadding="3" width="100%">
            <tr>
                <td class="label">主题：</td>
                <td>
                    <input  type="text" name="theme" value="" />
                </td>
            </tr>
            <tr>
                <td class="label">开始时间：</td>
                <td>
                    <input id="gene_time" type="text" name="gene_time" value="" />
                </td>
            </tr>
            <tr>
                <td class="label">活动介绍：</td>
                <td>
                	<textarea id="text" name="text"></textarea>
                </td>
            </tr>
            <tr>
                <td class="label">插入图片：</td>
                <td>
                	<input type="file" name="picture" /> 
                </td>
            </tr>
            <tr>
                <td class="label">1是商家2是用户：</td>
                <td>
                    <input  type="text" name="user_type" value="" />
                </td>
            </tr>
            <tr>
                <td class="label">店铺的id：</td>
                <td>
                    <input  type="text" name="shop_id" value="" />
                </td>
            </tr>
            <tr>
                <td colspan="99" align="center">
                    <input type="submit" class="button" value=" 确定 " />
                    <input type="reset" class="button" value=" 重置 " />
                </td>
            </tr>
        </table>
    </form>
</div>
<script>
$("#gene_time").datepicker(); 
var um = UM.getEditor('text', {
	initialFrameWidth:"100%"
});
</script>